<!-- 车型管理|startusing:启用,forbidden:禁用,edit:编辑,delete:删除,choose:选中,deleted:查看已删除 -->
<div class="layui-col-xs12 layui-col-md12">
    <!-- 面包屑导航
    <div>
        <span class="layui-breadcrumb">
            <a href="/">首页</a>
            <a href="/demo/">公务用车管理</a>
            <a>
                <cite>导航元素</cite>
            </a>
        </span>
    </div> -->
    <!-- 搜索框 -->
    <form class="layui-form" action="" style="margin-top:10px;">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <select name="type">
                    <option value="" {$Think.get.type?"":"selected"}>全部</option>
                    <optgroup label="公务">
                        <option value="2" {$Think.get.type==2?"selected":""}>公务车</option>
                        <option value="3" {$Think.get.type==3?"selected":""} >公包车</option>
                    </optgroup>
                    <optgroup label="个人">
                        <option  {$Think.get.type==4?"selected":""} value="4">约租车</option>
                        <option  {$Think.get.type==5?"selected":""} value="5">私包车</option>
                    </optgroup>
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="car_type" lay-filter="">
                        <option {$Think.get.car_type?"":"selected"} value=''>全部</option>
                        <option {$Think.get.car_type==2?"selected":""} value='2'>优选型</option>
                        <option {$Think.get.car_type==3?"selected":""} value='3'>舒适型</option>
                        <option {$Think.get.car_type==4?"selected":""} value='4'>豪华型</option>
                        <option {$Think.get.car_type==9?"selected":""} value='9'>商务型</option>
                        <option {$Think.get.car_type==5?"selected":""} value='5'>大巴</option>
                        <option {$Think.get.car_type==6?"selected":""} value='6'>小巴</option>
                        <option {$Think.get.car_type==7?"selected":""} value='7'>中巴</option>
                        <option {$Think.get.car_type==8?"selected":""} value='8'>执法车</option>
                </select>
            </div>
            <button class="layui-btn layui-btn-normal"><span>查询</span></button>
        </div>
    </form>
    <!-- 车辆操作 -->
    <div>
        <div class="layui-btn-group" style="width: 100%;">
            <button class="layui-btn layui-btn-primary layui-btn-sm add" data-btn='add'>新增</button>
            <button class="layui-btn layui-btn-primary layui-btn-sm delete-multiple" data-btn='delete'>删除</button>
            <button class="layui-btn layui-btn-primary layui-btn-sm" data-btn='deleted'>查看已删除车型</button>
        </div>
    </div>
 <!-- 表单 -->
<div class="table_margin_0">
    <table class="layui-hide" id="models" lay-filter="barDemo"></table>
</div>
    <!-- 分页 -->
<div id="page"></div>
</div>
 <script type="text/html" id="barDemo">
    {{#  if(d.state ==9){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="startusing" data-btn='startusing'>启用</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="forbidden" data-btn='forbidden'>禁用</a>
    {{#  } }}
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-btn='delete'>删除</a>
 </script> 
  <script type="text/html" id="barDemo2">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="choose" data-btn='choose'>选中</a> 
 </script> 